package com.gcxy.controller;


import com.gcxy.conf.result.R;
import com.gcxy.dto.AddUserDTO;
import com.gcxy.dto.EditUserDTO;
import com.gcxy.dto.LoginUserDTO;
import com.gcxy.dto.UserPageDTO;
import com.gcxy.service.IUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户表; 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-12-25
 */
@RestController
@RequestMapping("/user")
@Api(value = "UserController" , tags = "用户管理控制器")
public class UserController {
	@Autowired
	private IUserService userService;
	@ApiOperation(value = "添加用户")
	@PostMapping("/addUser")
	public R addUser(@Validated @RequestBody AddUserDTO addUserDTO){
		return null;
	}

	@ApiOperation(value = "登录")
	@PostMapping("/login")
	public R login(@Validated @RequestBody LoginUserDTO loginUserDTO){
		return null;
	}
	@ApiOperation(value = "退出登录")
	@PostMapping("/logout")
	public R logout(@RequestBody String token){
		return null;
	}
	@ApiOperation(value = "修改用户信息")
	@PostMapping("/editUser")
	public R editUser(@RequestBody EditUserDTO editUserDTO){
		return null;
	}
	@ApiOperation(value = "删除用户")
	@PostMapping("/deleteUser")
	public R deleteUser(@RequestBody String userId){
		return null;
	}
	@ApiOperation(value = "根据id重置用户密码")
	@PostMapping("/resetPassword")
	public R resetPassword(@RequestBody String userId){
		return null;
	}
	@ApiOperation(value = "获取当前用户")
	@PostMapping("/getCurrentUser")
	public R getCurrentUser(@RequestBody String token){
		return null;
	}
	@ApiOperation(value = "分页多条件查询用户")
	@PostMapping("/getUserList")
    public R getUserList(@RequestBody UserPageDTO userPageDTO){
		return null;
	}

}
